package ch.selise.designpattern.report;

public class ExporterFactory {

	public static Exporter getExporter(String format){
		
		Exporter exporter = null;
		if(format.equals("pdf")){
			exporter = new PdfExporter();
		}
		if(format.equals("word")){
			exporter = new MsWordExporter();
		}
		if (format.equals("csv")) {
			exporter = new CsvExporter();
		}
		
		return exporter;
	}
}
